const express = require('express');
const router = require('./router/router');

// 创建服务器
let server = express()

// 注册挂载路由并为其添加访问前缀
server.use('/api', router)

// 启动服务器
server.listen('3000', () => {
  console.log('Express running server at http://127.0.0.1:3000')
})
